<?php


namespace app\api\controller\xilumarket;


use app\common\controller\Api;
use app\common\model\xilumarket\Brand AS BrandModel;

/**
 * 回收分类
 * @package app\api\controller\xilumarket
 */
class Brand extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function lists(){
        $category_id = $this->request->param("category_id");
        $lists = BrandModel::field("id,name")->where('status','normal')->where("FIND_IN_SET(".$category_id.",category_ids)")->order('weigh','desc')->select();
        $this->success("查询成功",$lists);
    }


}